package top.healthylife.gateway.platform.baihang.api.api.operatorproduct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu021.req.BHReqThreeElementsV2Dto;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu021.res.BHResThreeElementsV2Dto;

/**
 * 手机三要素核验详版（加密版）
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "手机三要素核验详版[加密版]" , info = "核验手机号、姓名、证件号是否一致（支持电信、联通、移动），支持三要素加密")
public class BHThreeElementsV2Api implements ParentFace<BHReqThreeElementsV2Dto, BHResThreeElementsV2Dto> {

    private static final String PRODUCT_CODE = "MBASUT21";

    @Override
    public BHResThreeElementsV2Dto execute(BHReqThreeElementsV2Dto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResThreeElementsV2Dto.class);
    }
}
